
<?php
foreach ($users as $i => $user) {
  $last = ($i + 1) % 3 == 0 ? ' last' : '';

  if ($i % 3 == 0) {
    if ($i > 0) {
?>
</div> <!-- /cols3 -->
<div id="cols3-bottom"></div>
<?php
    }
?>
<!-- 3 columns -->
<div id="cols3-top"></div>
<div id="cols3" class="box">
<?php
  }
?>

    <!-- Column I. -->
    <div class="col<?php echo $last; ?>">

        <h3><a href="#"><?php echo $html->link($user['User']['name'], array('controller' => 'users', 'action' => 'view', $user['User']['id'])); ?></a></h3>
        
        <p class="nom t-center"><?php echo $html->link('<img src="' . $user['User']['avatar'] . '" alt="" />', array('controller' => 'users', 'action' => 'view', $user['User']['id']), array(), FALSE, /*esc*/FALSE); 
?></p>

        <div class="col-text">

            <p><?php echo $user['User']['about']; ?></p>
            
            <ul class="ul-01">
<?php 
foreach ($user['Point'] as $point) {
  $sender_name = $point['sender_id'] ? $html->link($point['Sender']['name'], array('controller' => 'users', 'action' => 'view', $point['Sender']['id'])) : $point['sender_name'];
?>
              <li><strong><?php echo $sender_name; ?></strong>: <?php echo mb_substr($point['text'], 0, 24, 'UTF8'), '&hellip;'; ?></li>
<?php
}
?>
            </ul>

        </div> <!-- /col-text -->

        <!--div class="col-more"><a href="#"><img src="/img/design/cols3-more.gif" alt="" /></a></div-->

    </div> <!-- /col -->

    <hr class="noscreen" />

<?php
} // 3 columns
?>

</div> <!-- /cols3 -->
<div id="cols3-bottom"></div>
